package com.example.myblog.repository;

import com.example.myblog.model.Settings;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * 网站设置数据访问接口
 */
@Repository
public interface SettingsRepository extends JpaRepository<Settings, Long> {
    
    /**
     * 根据键名查找设置
     */
    Optional<Settings> findBySettingKey(String settingKey);
}